package string;
//干嘛用的：对应之前验证码的char数组；
public class CharAtDemo {
    public static void main(String[] args) {
        String str = "thinking in java";
        int index = (int)(Math.random()*str.length());
        char a = str.charAt(index);
        System.out.println(a);
    }
}
